package com.hhxyjsj.responsibility;

/**
 * 个税计算测试类
 * 	1   　不超过4500元的             　　　           3  
 *	2   　超过9000元至80000元的部分 　　   25  
 *	3  　 超过80000元的部分          　　           45  
 * @author Puhui
 *
 */
public class TaxCalculationTest {

	public static void main(String[] args) {

		TaxCalculation oneLevel = new OneLevelTaxCalculation();
		TaxCalculation twoLevel = new TwoLevelTaxCalculation();
		TaxCalculation threeLevel = new ThreeLevelTaxCalculation();
		twoLevel.setTaxCalculation(oneLevel);
		threeLevel.setTaxCalculation(twoLevel);

		System.out.println("扣除4险一金及交税起步线3500后的个人工资100000元，应缴纳个税：【" + threeLevel.calc(100000d) + "】元");
		System.out.println("扣除4险一金及交税起步线3500后的个人工资90000元，应缴纳个税：【" + threeLevel.calc(90000d) + "】元");
		System.out.println("扣除4险一金及交税起步线3500后的个人工资60000元，应缴纳个税：【" + threeLevel.calc(60000d) + "】元");
		System.out.println("扣除4险一金及交税起步线3500后的个人工资4000元， 应缴纳个税：【" + threeLevel.calc(4000d) + "】元");

	}

}
